package com.meteor.downloader.videodownloader.admdm

import com.google.android.gms.ads.appopen.AppOpenAd
import com.google.android.gms.ads.interstitial.InterstitialAd
import com.google.android.gms.ads.nativead.NativeAd
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class ValueMdmInfo(
    val mdmAdID: String, val mdmOther: String, val mdmValueLevel: Int, val mdmAdType: String
) {
    @Json(ignore = true)
    var mOpenObject: AppOpenAd? = null

    @Json(ignore = true)
    var mIntersObject: InterstitialAd? = null

    @Json(ignore = true)
    var mNativeObject: NativeAd? = null

    @Json(ignore = true)
    var mBookLoading = false

    @Json(ignore = true)
    var mBookShowing = false

    @Json(ignore = true)
    var mLoadTime = 0L

    fun changeResultToNull() {
        mBookLoading = false
        mBookShowing = false
        mLoadTime = 0L

        mOpenObject = null
        mIntersObject = null
        mNativeObject = null
    }
}